home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / c / m_emacs / dif311a / display.dif < prev    next >
Encoding:
Text File  |  1991-11-22  |  962 b   |  45 lines

  1. 696c696
  2. < /*    mlerase();    do we really need this? */
  3. ---
  4. >     mlerase();
  5. 1027,1028c1027
  6. <     char tline[NLINE];    /* buffer for part of mode line */
  7. <     char time[6];        /* to hold current time */
  8. ---
  9. >     char tline[NLINE];        /* buffer for part of mode line */
  10. 1089,1103d1087
  11. <     /* display the time on the bottom most modeline if active */
  12. <     if (timeflag && wp->w_wndp == (WINDOW *)NULL) {
  13. <         /* get the current time/date string */
  14. <         getdtime(time);
  15. <         if (strcmp(time, "") != 0) {
  16. <             /* append the hour/min string */
  17. <             strcat(tline, "[");
  18. <             strcat(tline, time);
  19. <             strcat(tline, "] ");
  20. <             strcpy(lasttime, time);
  21. <         }
  22. <     }
  23. 1183,1200d1166
  24. < }
  25. < PASCAL NEAR getdtime(ts)    /* get the current display time string */
  26. < char *ts;
  27. < {
  28. <     char buf[80];
  29. <     strcpy(buf, timeset());
  30. <     if (strcmp(buf, errorm) == 0) {
  31. <         *ts = 0;
  32. <         return;
  33. <     }
  34. <     buf[16] = 0;
  35. <     strcpy(ts, &buf[11]);
  36. <     return;
  37.